package io.github.talelin.latticy.dto.machine;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
@NoArgsConstructor
public class CreateOrUpdateMachineDTO {


    private Integer mid;

    @NotEmpty(message = "{machine.mname.not-empty}")
    @Length(max = 50, message = "{machine.mname.length}")
    private String mname;

    @NotEmpty(message = "{machine.location.not-empty}")
    @Length(max = 1000, message = "{machine.location.length}")
    private String location;

    private String remark;
}
